package com.ruoyi.web.controller.order;


import cn.hxzy.entity.order.Waybill;
import com.hxzy.order.entity.TlLoaderUnloadLog;
import com.hxzy.order.service.TlLoaderUnloadLogService;
import com.hxzy.order.service.TlWaybillLogService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author mingqian.Wu
 * @since 2023-06-27
 */
@RestController
@RequestMapping("/tlLoaderUnloadLog")
public class TlLoaderUnloadLogController {

    @Autowired
    private TlLoaderUnloadLogService tlLoaderUnloadLogService;

    @PostMapping("/addUnloadLog")
    public AjaxResult addUnloadLog(@RequestBody TlLoaderUnloadLog tlLoaderUnloadLog) {
        boolean b = tlLoaderUnloadLogService.addUnloadLog(tlLoaderUnloadLog);
        if (b) {
            return AjaxResult.success("卸车成功");
        }
        return AjaxResult.error("卸车失败");
    }

}

